"""
@name : 02.pyquery
@author : wenyao
@projectname: yttljcode
"""

from pyquery import PyQuery as pq
import requests

url = "https://www.sanchuangedu.cn"
ret = requests.get(url)
#http 200 成功

if ret.status_code == 200:
    ht = ret.text
    pq_html = pq(ht, parser="html")
    pic = pq_html("img").items()
    for i in pic:
        print(i.attr("src"))



